<include target="header.html" />

<load target="../../tpl/js/pointsend.js" />
<load target="../../tpl/js/autoresize.jquery.min.js" />

<div id="popHeader" class="wide">
	<h3 class="xeAdmin">{$lang->pointsend}</h3>
</div>

<div id="popBody">
<form action="./" method="post" onsubmit="return procFilter(this, pointsend)">
	<input type="hidden" name="sender_srl" value="{$logged_info->member_srl}" />
	<input type="hidden" name="receiver_srl" value="{$member_info->member_srl}" />

	<table cellspacing="0" class="rowTable">
	<tr>
		<th scope="row"><div>{$lang->receiver}</div></th>
		<td class="wide"><span class="member_{$member_info->member_srl}">{$member_info->nick_name}</span><!--@if($logged_info->is_admin == 'Y')--> ({$member_info->user_id})<!--@end--></td>
	</tr>
	<tr>
		<th scope="row" rowspan="2"><div>{$lang->send_point}</div></th>
		<td class="wide"><input type="text" id="input_send_point" name="send_point" value="" class="inputTypeText" />
		<!--@if($logged_info->is_admin == 'Y')-->
		<a href="" class="btnSign"><span>{$lang->subtraction}</span></a>
		<div id="subtractMessage" style="display:none; margin-top:10px;">
		※ 입력한 포인트만큼 해당 회원의 포인트를 차감합니다.
		</div>
		<div class="chkSubtract" style="display:none;">
		<input type="checkbox" name="is_subtraction" id="subtraction" value="Y" /> <label for="subtraction"><span>{$lang->subtraction}</span></label>
		</div>
		<!--@end-->
		</td>
	</tr>
		<td class="wide">
			{$lang->current_point} : <strong>{number_format($current_point)}</strong> -&gt;	{$lang->after_point} : <strong class="remainingPoint">{number_format($current_point)}</strong>
		</td>
	</tr>
	<tr cond="$pointsend_config->use_fee == 'Y'">
		<th scope="row"><div>{$lang->fee}</div></th>
		<td class="wide"><span class="curFee">0</span> {$lang->point}</td>
	</tr>
	<tr>
		<th scope="row"><div>{$lang->gift_message}</div></th>
		<td>
			<textarea name="gift_message" cols="50" class="inputTypeTextArea"></textarea>
			<p>{$lang->about_gift_message}<p>
		</td>
	</tr>
	</table>
</div>

<script type="text/javascript">
var cf_useFee = '{$pointsend_config->use_fee}';
<!--@if($pointsend_config->use_fee == 'Y')-->
var cf_fee = {$pointsend_config->fee};
var cf_feePoint = {$pointsend_config->fee_apply_point};
<!--@end-->
var cf_curPoint = {$current_point};
</script>
<script type="text/javascript">
(function($){
	$('textarea[name=gift_message]').autoResize({
		animateDuration : 300,
		extraSpace : 0,
	});
})(jQuery);
</script>

<div id="popFooter">
	<span class="btn button black strong"><input type="submit" value="{$lang->pointsend}" /></span>
</div>
</form>
<!--#include("footer.html")-->